<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			//母鸡
			for (var a = 0; a < 100; a++) {
				//公鸡
				for (var b = 0; b < 100; b++) {
					//小鸡
					var c = 100 - a - b;
					if (3 * a + 5 * b + c / 3 === 100) {
						document.write("母鸡有：" + a + "只" + '<br>')
						document.write("公鸡有：" + b + "只" + '<br>')
						document.write("小鸡有：" + c + "只" + '<br>')
						document.write('<br>')
					}
				}
			}
		</script>
	</head>
	<body>
	</body>
</html>
